<template>
  <div class="app-container message-detail-wrap">
    <el-form label-width="100px" style="max-width: 600px;">
      <el-form-item label="标题：">
        <div class="formdetail">{{data.title}}</div>
      </el-form-item>
      <el-form-item label="内容：">
        <div class="formdetail">{{data.content}}</div>
      </el-form-item>
      <el-form-item label="发送时间：">
        <div class="formdetail">{{data.newsDate}}</div>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  import {
    viewBizNews
  } from "@/api/home";
  export default {
    name: "MessageDetail",
    data() {
      return {
        data: {}

      };
    },


    created() {
      this.get()
    },
    methods: {

      get(type) {
        viewBizNews({
          id: this.$route.query.id,
          receiveId: this.$route.query.receiveId
        }).then(res => {
          this.data = res.data

        })
      }
    }
  };

</script>

<style rel="stylesheet/scss" lang="scss">
  .message-detail-wrap {
    padding-top: 20px;

    .formdetail {
      background: #efefef;
      padding: 5px 10px;
      border-radius: 5px;
    }
  }

</style>
